"use client";
import React from "react";
import Image from "next/image";
import { signIn } from "next-auth/react";
import { DEFAULT_LOGIN_REDIRECT } from "@/routes";
export default function social() {
  const social = (provider: string) => {
    signIn(provider, {
      redirectTo: DEFAULT_LOGIN_REDIRECT,
    });
  };
  return (
    <>
      <div className="cursor-pointer">
        <Image src="/images/wechat.svg" width={32} height={32} alt={"WeChat"} />
      </div>
      <div className="cursor-pointer">
        <Image
          src="/images/github.svg"
          width={32}
          height={32}
          alt={"Github"}
          onClick={() => social("github")}
        />
      </div>
    </>
  );
}
